package yunjiao.javatutorials.designpatterns.builder;

import lombok.Getter;

/**
 * 订单类型
 *
 * @author yangyunjiao
 */
@Getter
public enum OrderType {
    TAKE_AWAY("Take Away", 2.0d), EAT_HERE("Eat Here", 5.5d);

    private final String name;

    private final double tax;

    OrderType(String name, double tax) {
        this.name = name;
        this.tax = tax;
    }
}
